﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdminTeacherAdd.aspx.cs"
    Inherits="LIMS.Web.AdminTeacherAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .box-3
        {
            border: 1px solid #cccccc;
        }
    </style>
    <script type="text/javascript" src="jQuery/jquery-1.7.1.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#Reset1").click(function () {
                $("#txtTeacherID").val("");
                $("#txtTeacherName").val("");
                $("#txtPwd1").val("");
                $("#txtPwd2").val("");
            })
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <table width="700" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
            <tr>
                <td height="60" bgcolor="#FFFFFF">
                    &nbsp;&nbsp;<strong>教师信息编辑</strong>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="700" border="0" cellspacing="1" cellpadding="0">
                        <tr>
                            <td width="200" align="right" bgcolor="#FFFFFF" style="height: 30px">
                                <font color="#FF0000" size="2">*&nbsp;</font><font size="2">老师编号</font>
                            </td>
                            <td width="500" bgcolor="#FFFFFF" style="height: 30px">
                                <div style="text-align: left; margin-left: 15px;">
                                    <asp:TextBox ID="txtTeacherID" runat="server" CssClass="box-3" Width="45%" MaxLength="16"></asp:TextBox>
                                    <asp:Button ID="btnCheckTeacher" runat="server" Text="检测ID" Width="15%" OnClick="btnCheckTeacher_Click" /><asp:RequiredFieldValidator
                                        ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTeacherID"
                                        Display="Dynamic" ErrorMessage="老师编号不能为空" ForeColor="#AA11FF">老师编号不能为空</asp:RequiredFieldValidator>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td width="200" height="30" align="right" bgcolor="#FFFFFF">
                                <font size="2"><span style="color: #ff0000">*&nbsp;</span>老师姓名</font>
                            </td>
                            <td width="500" height="30" bgcolor="#FFFFFF">
                                <div style="text-align: left; margin-left: 15px;">
                                    <asp:TextBox ID="txtTeacherName" runat="server" CssClass="box-3" MaxLength="50" Width="60%"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtTeacherName"
                                        Display="Dynamic" ErrorMessage="老师姓名不能为空" ForeColor="#AA11FF">老师姓名不能为空</asp:RequiredFieldValidator>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff" height="30" width="200">
                                <font size="2"><span style="color: #ff0000">*&nbsp;</span>登录密码</font>
                            </td>
                            <td bgcolor="#ffffff" height="30" width="500">
                                <div style="text-align: left; margin-left: 15px;">
                                    <asp:TextBox ID="txtPwd1" runat="server" CssClass="box-3" MaxLength="40" TextMode="Password"
                                        Width="60%"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPwd1"
                                        Display="Dynamic" ErrorMessage="密码不能为空" ForeColor="#AA11FF">密码不能为空</asp:RequiredFieldValidator>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff" height="30" width="200">
                                <font size="2"><span style="color: #ff0000">*&nbsp;</span>确认密码</font>
                            </td>
                            <td bgcolor="#ffffff" height="30" width="500">
                                <div style="text-align: left; margin-left: 15px;">
                                    <asp:TextBox ID="txtPwd2" runat="server" CssClass="box-3" MaxLength="40" TextMode="Password"
                                        Width="60%"></asp:TextBox>
                                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPwd1"
                                        ControlToValidate="txtPwd2" Display="Dynamic" ErrorMessage="两次密码必须一致" ForeColor="#AA11FF">两次密码必须一致</asp:CompareValidator>
                                </div>
                            </td>
                        </tr>
            </tr>
            <tr>
                <td height="30" colspan="2" align="center" bgcolor="#FFFFFF">
                    &nbsp;
                    <div id="mesEmptyError" style="width: 200px; color: Red; margin-top: 0px; margin-bottom: 10px;"
                        runat="server">
                    </div>
                </td>
            </tr>
            <tr>
                <td height="30" colspan="2" align="center" bgcolor="#FFFFFF">
                    <asp:Button ID="btnOK" runat="server" Text="保存提交" OnClick="btnOK_Click" />&nbsp;&nbsp;&nbsp;
                    &nbsp;
                    <input id="Reset1" type="reset" value="重新填写" />
                    <input id="hidInfoID" type="hidden" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
